<div class="container" title="班级成绩查询">
<div class="form-group" style="margin-top: 20px">
		<p>
		<label>选择班级：<input id="xzbj" name="xzbj" value="" type="text" class="form-control" /></label> 
		</p>
</div>
</div>
<div id="div3" class="container"></div>
<script type="text/javascript">
$(function(){
	$('#xzbj').combobox({
		searchUrl:'',
		url:'banji/list',
		valueField:'id',
		textField:'name',
		onchange:function(id){
			console.log(id);
		     	if(id){
					$('#div3').show();
					$('#div3').load('grade/cjbs',{bjId:id},function () {
							$('#wdc').datagrid({
							  url:'',
							 toolbar:[],
							 buttons:[],
							 search: false, 
								})
						});
			}else{
						$('#div3').hide();
			}
		}
	});
	
})
</script>